package com.sgzn.sgpay.service.tcp.model;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by xxjs-gd-llf
 * DATETIME:2018/4/11 23:18
 * Description: 客户端登陆申请注册码
 */
@Setter
@Getter
public class TcpLoginRequest {

    String beginCode;

    String commandCode;


    @NotBlank
    String deviceId;

    @NotBlank
    String checkSumCode;

    String endCode;

    @Override
    public String toString(){
        //根据协议规范重载toString方法
        return "beginCode:"+ beginCode+ " commandCode:" + commandCode + " deviceId:"+ deviceId + " checkSumCode:" + checkSumCode+ " endCode" + endCode;
    }

}
